<?php

use yii\helpers\Html;
use yii\widgets\DetailView;

/* @var $this yii\web\View */
/* @var $model app\modules\Order\models\Leader */

$this->title = $model->first_name.$model->last_name;
$this->params['breadcrumbs'][] = ['label' => 'Leaders', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="leader-view">

    <h2 class="page-header"><?= Html::encode($this->title) ?>
        <p class="pull-right"> 
            <?= Html::a(Yii::t('app', 'Update'), ['update', 'id' => $model->id], ['class' => 'btn btn-primary']) ?>
        </p>
    </h2>

    <?= DetailView::widget([
        'model' => $model,
        'attributes' => [
            //'id',
            'first_name',
            'last_name',
            'en_first_name',
            'en_last_name',
            'code',
            'pinyin',
            'gender',
            'birthday',
            'country',
            'passport',
            'passport_add',
            'passport_date',
            'passport_type',
            'phone',
            'remark',
            [
                'attribute' => 'status',
                'value' => Yii::$app->params['status'][$model->status],
            ],
            //'user_id',
            'created_at',
            'updated_at',
        ],
    ]) ?>

</div>
